// Tab栏 通用组件
<template>
  <nav class="tab">
    <tab-sub
      v-for="(item, index) of cityDatas"
      :key="index"
      :cityInfo="item"
    ></tab-sub>
  </nav>
</template>

<script>
import cityDatas from "data/cities";
import TabSub from "./Sub";

export default {
  name: "Tab",
  components: {
    TabSub: TabSub,
  },
  data: function () {
    return {
      cityDatas: cityDatas,
    };
  },
};
</script>

<style lang="scss" scoped>
@import "~styles/mixins.scss";
@import "~styles/variables.scss";

.tab {
  @include flex-row;
  flex-wrap: no-wrap;
  height: 0.44rem;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
</style>